package com.hfh.test;

/**
 * @Author hfh
 * @Date 2022 09 15 09 26
 **/
class BaseClass {
    public BaseClass() {
        System.out.println("父类");
    }
}

public class SubClass extends BaseClass {
    public SubClass() {
        super();
        System.out.println("子类");
    }

    public static void main(String[] args) {
        new SubClass();
    }
}
